package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.OrePool;
import com.mls.fivedistrict.pojo.OrePoolExample;

import java.math.BigDecimal;
import java.util.List;

import com.mls.fivedistrict.pojo.ProductPlan;
import org.apache.ibatis.annotations.Param;

public interface OrePoolMapper {
    long countByExample(OrePoolExample example);

    int deleteByExample(OrePoolExample example);

    int deleteByPrimaryKey(Long id);

    int insert(OrePool record);

    int insertSelective(OrePool record);

    List<OrePool> selectByExample(OrePoolExample example);

    OrePool selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") OrePool record, @Param("example") OrePoolExample example);

    int updateByExample(@Param("record") OrePool record, @Param("example") OrePoolExample example);

    int updateByPrimaryKeySelective(OrePool record);

    int updateByPrimaryKey(OrePool record);

    OrePool selectByProductId(@Param("productPlanId") Long productPlanId);

    BigDecimal getProductPlanTotalByOreId(@Param("orePoolId") Long id);
}